package com.alan.shiro.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * role表：
 *      id
 *      role_name
 *      user_id
 * @Auther: Alan liu
 * @Date: 2018/12/11 18:08
 * @Description: Role
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Role {

    public Role(Long id) {
        this.id = id;
    }

    private Long id;
    private String roleName;
    private User user;
    private List<Permission> permissions;
}
